<?php

class CategoryController extends Controller {

	public function __construct($data) {
        parent::__construct($data);

    }
    
public function index() {
		require_once( '../system/ecjp_m.php' );
		  
		  $this->_load_mdao_class("t_m_goods");
	      $goods_dao = new t_m_goods;

		
		
		   $sql = 'SELECT * FROM  m_categorygood';
           $category_data = $goods_dao->get_rows($sql);
           if (isset($category_data))
           $this->assign('category_data', $category_data);
		
		$this->display('select_category.html');
	}
}
?>